package com.mlnx.device.pojo.dto;

import com.mlnx.common.entity.Response;
import org.springframework.web.context.request.async.DeferredResult;

/**
 * 同步数据类
 *
 * @author zzb
 * @create 2019/10/10 14:15
 */
public class SynData {
    /**
     * 总记录数
     */
    private Integer total;
    /**
     * 当前记录数
     */
    private Integer current;
    /**
     * 前记录数的时间
     */
    private Long currentTime;
    /**
     * 是否收到当前条数据
     */
    private boolean currentSign;

    /**
     * 结束时间
     */
    private Integer overTime;



    private DeferredResult<Response> responseDeferredResult;



    public Integer getOverTime() {
        return overTime;
    }

    public void setOverTime(Integer overTime) {
        this.overTime = overTime;
    }

    public boolean isCurrentSign() {
        return currentSign;
    }

    public void setCurrentSign(boolean currentSign) {
        this.currentSign = currentSign;
    }


    public DeferredResult<Response> getResponseDeferredResult() {
        return responseDeferredResult;
    }

    public void setResponseDeferredResult(DeferredResult<Response> responseDeferredResult) {
        this.responseDeferredResult = responseDeferredResult;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Long getCurrentTime() {
        return currentTime;
    }

    public void setCurrentTime(Long currentTime) {
        this.currentTime = currentTime;
    }
}
